<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<link rel="stylesheet" href="css/ui-box.css">
    <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-color.css">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/img.css">

	<script src="js/core/zy_control.js"></script>
    <script src="js/core/zy_click.js"></script>
    <script src="js/core/appframework.js"></script>
    <script src="js/core/exif.js"></script>
    <script src="http://static.polyv.net/file/polyvplayer_v2.0.min.js"></script>
    <script src="js/upload.js"></script>
    <script src="js/main.js"></script>
    <script src="js/core.js"></script>
    <script src="js/res.js"></script>

    <script src="js/course.js"></script>

</head>
<body class="ub ub-ver"> 
	<div id="content" class="ub ub-f1 ub-ver">
	</div>
	
</body>
</html>
<script>
zy_init();
window.uexOnload = function(type){
    if (!type) {
    	Res.gnTitle({title:GetLS("courseName"),rightTitle:"<img src='img/icon_plus.png' class='uw1 uh1'>", rightFn: function(){
            $alert("确定选该门课？",function(){
                $ajax({
                    url:"/user/setCourseProject", 
                    data:{
                        field: "course",
                        value: GetLS("courseId")
                    }, 
                    success:function(res){
                        $ajax({
                            "url": "/user/detail",
                            "data": {
                                _id: CurrentUser._id
                            },
                            success: function(res){
                                SetLS("user",res.result);
                                CurrentUser = res.result;
                                PCall("father","CCall('Course.courseIndexInit()')");
                                $alert("恭喜您，添加成功，请在个人学习列表查看");
                                WinClose();
                            }
                        });
                    }   
                });  
            });             
        }});
    	Add20ToHeader();
    	zy_con("content", "index_course_detail_content.html", 0, $("#header").outerHeight(), $("#footer").outerHeight());
    }
     //隐藏滚动条
    uexWindow.setWindowScrollbarVisible(false);
}
</script>